using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

namespace Close.io.API
{
	public abstract class CloseIoUpdatedableObject : CloseIoObject
	{

		[JsonProperty(PropertyName = "date_updated")]
		public DateTime? DateUpdated { get; private set; }

		[JsonProperty(PropertyName = "updated_by_name")]
		public string UpdatedBy { get; private set; }
			
		[JsonProperty(PropertyName = "updated_by")]
		public string UpdatedById { get; private set; }


		[JsonProperty(PropertyName = "created_by_name")]
		public string CreatedBy { get; private set; }


		
	   [JsonProperty(PropertyName = "date_created")]
		public DateTime? DateCreated { get; private set; }

		[JsonProperty(PropertyName = "created_by")]
		public string CreatedById { get; private set; }


		[JsonProperty(PropertyName = "organization_id")]
		public string OrganizationId { get; set;}
	}

	public abstract class CloseIoObject
	{
		[JsonProperty(PropertyName = "id")]
		public string Id { get; set; }
	}
}

		